package com.ycxy.sh.transaction.dao.entity;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.math.BigDecimal;
import java.time.LocalDateTime;
import java.util.Date;

/**
 * 销售详情
 * @author hlt
 * @since 2019-12-25
 */
@Data
@Accessors(chain = true)//链式写法
public class SoldRecord implements Serializable {
    private Long id;
    /**
     * 售出记录id
     */
    private Long soldId;
    /**
     * 商品id
     */
    private Long commodityId;
    /**
     * 商品名
     */
    private String commodityName;
    /**
     * 商品描述
     */
    private String commodityDescribe;
    /**
     * 售价
     */
    private BigDecimal sellingPrice;
    /**
     * 售出时间
     */
    private Date soldTime;
    /**
     * 用户id
     */
    private Long userId;
    /**
     * 1正常 2删除
     */
    private Integer soldStatus;
}
